/**
 *
 */
package com.mmlc.network.filter;

import android.content.Context;

import com.androidnetframe.BaseParentActivity;
import com.androidnetframe.httputil.BaseRequestFilterLayer;
import com.androidnetframe.httputil.EntryPageName;
import com.mmlc.network.requestbean.CategoryListRequestBean;
import com.mmlc.utils.SPUtils;

/**
 * @author 何强
 *         2015-12-18
 * @修改 张园汀 2015-12-30
 */
public class CategoryListRequestFilter extends BaseRequestFilterLayer {
    public CategoryListRequestBean requestBean = new CategoryListRequestBean();

    Context context;

    public CategoryListRequestFilter(BaseParentActivity context) {
        super(context);
        this.context = context.getApplicationContext();
        requestBean.method = "categoryList";
        makeRequestParams.entryPageName = EntryPageName.n2_a + "";
        makeRequestParams.setReqeustBean(requestBean, true);
    }

    @Override
    public void getResultSuccess(String responseString, Object obj) {
//        CategoryListResponseBean bean = (CategoryListResponseBean) obj;

        SPUtils.get(context, "category_list", responseString);
    }
}
